package cn.edu.scau.cmi.liujianxun.composite.safe;

public class Person implements Component{
	
	private String name;
	
	public Person(String name) {
		this.name = name;
	}
	
	@Override
	public String operation() {
		return "我是一个人，我的名字是" +this. name;
	}
	
	@Override
	public String getName() {
		return this.name;
	}
}
